#include "return_value_behavior.hpp"
#include "invocation_matcher.hpp"
#include "config.hpp"

namespace vimock {
return_value_behavior::return_value_behavior(invocation_matcher inv_matcher,
		object value_to_return) :
	inv_matcher(inv_matcher), value_to_return(value_to_return) {
}
return_value_behavior::~return_value_behavior() {

}
object return_value_behavior::replay(invocation inv) {
	if (!(inv_matcher->matches(inv))) {
		config::selected_error_reporter->report_unexpected_invocation();
	}
	return value_to_return;
}
}
